<template>
	<view class="myIntegralBox">
		<view class="topBox">
			<uni-icons type="info" size="20" color="#fff" class="infoIcon"></uni-icons>
			<view class="integral flex_center">
				<text>我的积分：60</text>
				<view class="info">
					明细
					<uni-icons type="arrowright" size="12" color="#fff"></uni-icons>
				</view>
			</view>
			<view class="levelBox">当前等级V0</view>
			<navigator url="" class="progressBox">
				<progress percent="80" stroke-width="25" activeColor="#ffc44d" backgroundColor="transparentize" />
				<view class="growthBox flex_center">
					<view class="nowLevel">V0</view>
					<view class="progressItem">
						<text class="label">成长值</text>
						<text class="num">40 / 50</text>
					</view>
					<view class="nextLevel">V1</view>
					<uni-icons type="arrowright" size="18" color="#fff" class="proIcon"></uni-icons>
				</view>
			</navigator>
		</view>
		<view class="navBox flex_center">
			<navigator url="" class="navItem ">
				<image src="../../static/icon_qiandao.png" mode="widthFix" class="navImg"></image>
				<view class="navTitle">每日签到</view>
			</navigator>
			<navigator url="" class="navItem">
				<image src="../../static/icon_Member.png" mode="widthFix" class="navImg"></image>
				<view class="navTitle">会员任务</view>
			</navigator>
			<navigator url="" class="navItem">
				<image src="../../static/icon_Coupon.png" mode="widthFix" class="navImg"></image>
				<view class="navTitle">充值送红包</view>
			</navigator>
		</view>
		<view class="cardBox flex_center">
			<view class="cardItem">
				<image src="../../static/banner101.png" mode="scaleToFill" class="cardImg"></image>
				<view class="cardCont">
					<view class="exclusive">#首次储值用户专享#</view>
					<view class="title">储值即送200元红包</view>
					<view class="info">非首次充值用户最高可得200元红包</view>
					<view class="topUp">立即充值</view>
				</view>
			</view>
			<view class="cardItem">
				<image src="../../static/banner101.png" mode="scaleToFill" class="cardImg"></image>
				<view class="cardCont">
					<view class="exclusive">#首次储值用户专享#</view>
					<view class="title">储值即送200元红包</view>
					<view class="info">非首次充值用户最高可得200元红包</view>
					<view class="topUp">立即充值</view>
				</view>
			</view>
		</view>
		<view class="vouchersBox">
			<view class="gread">
				<view class="greadTitle flex_center">
				<image src="../../static/v1.png" mode="widthFix"></image>
				<text>一级会员</text>
				</view>
				<view class="upGread">
					成长值需满50，当前还差10升级
				</view>
			</view>
			<view class="vouchersBox clearfix">
				<navigator url="" class="vouchersItem ">
					<image src="../../static/1yuan.png" mode="widthFix" class="vouchersImg"></image>
					<view class="vouchersTitle">1元直减红包</view>
					<view class="integral">
						100积分
					</view>
				</navigator>
				<navigator url="" class="vouchersItem ">
					<image src="../../static/vouchers01.png" mode="widthFix" class="vouchersImg"></image>
					<view class="vouchersTitle">香港奶茶</view>
					<view class="integral">
						150积分
					</view>
				</navigator>
				<navigator url="" class="vouchersItem ">
					<image src="../../static/vouchers01.png" mode="widthFix" class="vouchersImg"></image>
					<view class="vouchersTitle">水果奶茶</view>
					<view class="integral">
						200积分
					</view>
				</navigator>
				<navigator url="" class="vouchersItem ">
					<image src="../../static/vouchers01.png" mode="widthFix" class="vouchersImg"></image>
					<view class="vouchersTitle">水果奶茶</view>
					<view class="integral">
						200积分
					</view>
				</navigator>
				</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	}
};
</script>

<style lang="scss">
.myIntegralBox {
	.topBox {
		color: #fff;
		padding: 40rpx 20rpx;
		background: linear-gradient(to right, #eb9b43, #f1bc69);
		.infoIcon {
			position: absolute;
			right: 30rpx;
			top: 20rpx;
		}
		.integral {
			margin-top: 30rpx;
			text {
				font-size: 34rpx;
			}
			.info {
				font-size: 24rpx;
				border: 2rpx solid #fff;
				padding: 0 5rpx;
				margin-left: 20rpx;
			}
		}
		.levelBox {
			font-size: 26rpx;
			margin: 20rpx 0;
		}
		.progressBox {
			border: 1px solid #ffc44d;
			position: relative;
			width: 60%;
			.growthBox {
				font-size: 34rpx;
				position: absolute;
				top: 50%;
				transform: translateY(-50%);
				width: 100%;
				.nowLevel {
					margin: 0 10rpx;
				}
				.progressItem {
					.label {
						margin: 0 10rpx;
					}
					.num {
						font-size: 30rpx;
						background-color: transparentize;
					}
				}
				.nextLevel {
					margin-left: auto;
					margin-right: 20rpx;
				}
				.proIcon {
					margin-right: -50rpx;
				}
			}
		}
	}
	.navBox {
		padding: 20rpx 0;
		.navItem {
			width: 33.3%;
			text-align: center;
			.navImg {
				width: 60rpx;
			}
			.navTitle {
				font-size: 26rpx;
			}
		}
	}
	.cardBox {
		overflow: auto;
		white-space: nowrap;
		.cardItem {
			width: 80%;
			flex-shrink: 0;
			padding: 0 20rpx;
			height: 260rpx;
			position: relative;
			.cardImg {
				width: 100%;
				height: 100%;
			}
			.cardCont {
				position: absolute;
				top: 20rpx;
				left: 40rpx;
				font-size: 26rpx;
				color: #222;
				.exclusive {
				}
				.title {
					font-size: 34rpx;
					margin: 20rpx 0;
				}
				.info {
					width: 22rpx;
				}
				.topUp {
					margin-top: 20rpx;
					border: 1px solid #000000;
					border-radius: 30rpx;
					padding: 5rpx;
					width: 160rpx;
					text-align: center;
				}
			}
		}
	}
.vouchersBox {
	padding: 20rpx;
	.gread {
		color: #848085;
		.greadTitle {
			image {
				width: 60rpx;
			}
			text {
				margin-left: 20rpx;
				font-size: 36rpx;
			}
		}
		.upGread {
			margin-top: 10rpx;
			margin-left: 50rpx;
		}
	}
	.vouchersBox {
		
		.vouchersItem {
			margin-top: 20rpx;
			float: left;
			width: 33.3%;
			text-align: center;
			.vouchersImg {
				width: 100rpx;
			}
			.vouchersTitle {
				font-size: 26rpx;
			}
			.integral {
				color: #efc474;
				
			}
		}
	}
}
}
</style>
